<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>038-generator函数处理ajax.html</title>
</head>
<body>
	
</body>
<script type="text/javascript">
	function * gen(url){
		const data1 = yield getDataPromise(url)
	}
	const g = gen('https://api.github.com/users/kuazhu')
	
	console.log(g.next())

	g.next().value


	.then(data=>{
		console.log(data.fallowers_url)
	})
	// console.log(url)
</script>
</html>